import { Controller, Get, Param } from '@nestjs/common';
import { DeviceService } from './device.service';

@Controller('device')
export class DeviceController {
    constructor(private deviceService:DeviceService) {}
    @Get('heartTime/:simcardNo')
    async heartTime(@Param('simcardNo') simcardNo:string) {
        let timestamp = this.deviceService.deviceHeart(simcardNo)
        return timestamp
    }
}
